<!-- 主导行业分类 -->
<template>
  <div class="page-box h100 display-flex czbj">
      <p class="title-label mb10">主导行业分类</p>
      <dxtable :dataJson="dataJson" :portUrl="portUrl" :formJson="formJson" :qx="qx" ref="databale" :czFun="czFun" czWidth="220"></dxtable>
      <!-- :czFun="czFun" -->
  </div>
</template>
<script lang='ts' setup>
import { leixing } from "../../util/config";
import dxtable from "../../components/util/dxtable.vue";
import sort from "../../components/util/sort.vue";
import { dxget,dxpost } from "../../util/index";
import { NButton,NImage } from "naive-ui"
import { h, ref, reactive } from "vue";
const databale = ref();
const initeer = () => {
  databale.value.initDataExpose();
};
let qxList = ref([]);
let dataJson = [
  
{
      title: "图标",
      key: "imgicon",
      width:100,
      render(row) {
        return  h(NImage,{src:row.imgicon,class:"iconsder"})
      },
  },
  {
      title: "名称",
      key: "name",
      width: 200,
      search: true, // 是否在搜索栏展示
  },
  {
      title: "简介",
      key: "introduce",
  
    ellipsis: {
      tooltip: true
    }
  },
  {
     title: "排序",
     width: 100,
     render(row) {
       row.databaseName = "IndustryClassification";
       row.sjk = "xtgx"
       return h(sort, {
         row,
         onCallBack: () => {
           initeer();
         },
       });
     },
   },
  {
      title: "添加时间",
      key: "addTime",
      width: 150,
  },
];
const qx = {
  DeletePermissionID: "xtgxIndustryClassificationdel", //删除
  EditPermissionIdentifier: "xtgxIndustryClassificationbj", // 编辑
  NewPermissionIdentifier: "xtgxIndustryClassificationxz", // 新建
  ViewPermissionID: "xtgxIndustryClassificationck", // 查看
};
// const portUrl = "dxgjAdmin/administrator?CharacterNameCode=" + leixing;
const portUrl = "xtgx/IndustryClassification";
let formJson = reactive([
{
      title: "图标",
      key: "imgicon",
      type: "img",
      val: ""
  },
  {
      title: "分类名称",
      type: "input",
      required: true, // 是否为必填
      key: "name",
      span:"24"
  },
  {
      title: "简介",
      key: "introduce",
      type: "textarea",
  }
]);



const czFun = {
  fun: (row) => {
    
  },
};
</script>
<style scoped></style>